// 审核管理api
import api from "../utils/http";
export default {
  // -----------------------------------------班级付款审批api-----------------------------------------------------------------
  // 班级付费申请获取表格数据 / 分页
  classMoneyGetData (classdata) {
    return api({
      url: "/groupPaymentApplication/selectAll",
      method: 'get',
      params: {
        ...classdata
      }
    })
  },
  // 班级付费申请--查询
  classMoneyQuery (classdata) {
    return api({
      url: "/groupPaymentApplication/selectAll",
      method: 'get',
      params: {
        ...classdata
      }
    })
  },
  // 班级付费申请--添加--上传
  classMoneyAddData (classdata) {
    return api({
      url: "/groupPaymentApplication/insert",
      method: 'post',
      data: classdata,
      emulateJSON: true,
      "content-type": "multipart/form-data",
    })
  },
    // 班级付费申请--编辑回显
    classMoneyAddECHO (classdata) {
      return api({
        url: "/groupPaymentApplication/selectByFlowNum",
        method: 'get',
        params: classdata,
      })
    },
  // 班级付费申请--添加--下拉框--聚焦
  classMoneySelectFocus () {
    return api({
      url: "/constructionHeTong/selectConstruction",
      method: 'get',
    })
  },
  // 班级付费申请--添加--下拉框--选中
  classMoneySelectChoose (classdata) {
    return api({
      url: "/groupPaymentApplication/selectByprojectIdAndConstructionTeamId",
      method: 'get',
      params: {
        ...classdata
      },
    })
  },
  // 班级付费申请表格--详情--施工班组合同
  classMoneyTableDetails (classdata) {
    return api({
      url: "/ApprovalComeOrFlowTogether/selectAll",
      method: 'get',
      params: classdata,
    })
  },
  // 班级付费申请表格--删除
  classMoneyTableDelete (classdata) {
    return api({
      url: "/groupPaymentApplication/deleteById",
      method: 'post',
      data: classdata,
    })
  },
    // 班级付费申请表格--审核
    classMoneyTabletoExamine (classdata) {
      return api({
        url: "/groupPaymentApplication/updateFlowNum",
        method: 'post',
        data: classdata,
      })
  },
  //班级付费申请表格--选择抄送人
  classMoneyTableSelectCC (classdata) {
    return api({
      url: "/project/select_emp",
      method: 'get',
      params: classdata,
    })
  },
      // 我经办的审批--班级付款申请--获取数据
      MyHandleGETData(classdata) {
        return api({
          url: "/GroupPaymentApplicationApproval/selectAllByFlowNum",
          method: 'get',
          params: classdata,
        })
  },
      // 我经办的审批--提交
      MyHandleSubmit(classdata) {
        return api({
          url: "/GroupPaymentApplicationApproval/update",
          method: 'post',
          data: classdata,
        })
      },
    // 我经办的审批--班级付款申请
  MyHandleExamine(classdata) {
    return api({
      url: "/GroupPaymentApplicationApproval/selectAll",
      method: 'get',
      params: classdata,
    })
  },
      // 我经办的审批--班级付款申请
    MyCCToExamine (classdata) {
    return api({
      url: "/GroupPaymentApplicationApproval/selectAllCarbonCopyRecipient",
      method: 'get',
      params: classdata,
    })
  },
    
     // 我经办的审批--班级付款申请
      MyCCDetails (classdata) {
      return api({
        url: "/GroupPaymentApplicationApproval/selectAllByFlowNum",
        method: 'get',
        params: classdata,
            })
          },
}